<form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
    <div class="table-responsive">
        <table class="table table-bordered table-hover">

            <thead>
            <tr>
                <td class="text-center" width="65px;">序号</td>
                <td class="text-center" width="100px;">LOGO</td>
                <td class="text-center">店铺名称</td>
                <td class="text-center" width="160px;">联系电话</td>
                <td class="text-center">店铺地址</td>
                <td class="text-center" width="85px;">店铺状态</td>
                <td class="text-center">操作</td>
            </tr>
            </thead>

            <tbody>
            <volist name="list" id="list">
                <tr>

                    <td class="text-center">{$list.shopId}</td>
                    <td class="text-center"><img src="{$list.shopLogo}" width="50px" height="50px"/></td>
                    <td class="text-center">{$list.shopName}</td>
                    <td class="text-center">{$list.shopPhone}</td>
                    <td class="text-center">{$list.shopProvince}{$list.shopCity}{$list.shopArea}{$list.shopAddress}</td>
                    <td class="text-center">
                        <img width="20" height="20" src="__PUBLIC__/images/<if condition='$list.shopStatus eq 1'>yes.png<else />cancel.png</if>" onclick="changeTableVal('shop','shopId','{$list.shopId}','shopStatus',this)"/>
                    </td>
                    <td class="text-center">
                        <a href="javascript:;" onclick="layerAlert('编辑店铺', '{:U('shop/edit', array('shopId' => $list.shopId))}', '70%', '85%')" class="btn btn-primary" title="编辑"><i class="fa fa-pencil"></i></a>
                        <a href="javascript:;" onclick="delfunc(this)" data-url="{:url('shop/del')}" data-id="{$list.shopId}"  class="btn btn-danger" title="删除"><i class="fa fa-trash-o"></i></a>
                    </td>
                </tr>
            </volist>

            </tbody>
        </table>
    </div>
</form>
<div class="row">
    <div class="col-sm-3 text-left"></div>
    <div class="col-sm-9 text-right">{$page}</div>
</div>
<script>
    // 点击分页触发的事件
    $(".pagination a").click(function(){
        cur_page = $(this).data('p');
        ajax_get_table('search-form', cur_page);
    });

</script>